﻿
namespace storge
{
	using System;
	using System.Runtime.InteropServices;

	public class RemovableDriveEjector : IEjectRemovableDrive
	{
		private string driveCharWithColon;

		public RemovableDriveEjector(string driveCharWithColon)
		{
			if (string.IsNullOrEmpty(driveCharWithColon) || driveCharWithColon.Length != 2 || !driveCharWithColon.EndsWith(":"))
				throw new ArgumentException();

			this.driveCharWithColon = driveCharWithColon;
		}

		public bool Eject()
		{
			/* nothing yet */
			return false;
		}

		/// <summary>
		/// WinAPI functions
		/// </summary>        
		private static class NativeMethods
		{
		}
	}
}
